package com.jyxd.web.dao.dictionary;

import com.jyxd.web.data.dictionary.NormalValueDictionary;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface NormalValueDictionaryDao {

    /**
     * 新增一条正常值字典表记录
     * @param normalValueDictionary
     * @return boolean
     */
    boolean insert (NormalValueDictionary normalValueDictionary);


    /**
     * 更新一条床位字典表记录
     * @param normalValueDictionary
     * @return boolean
     */
    boolean update (NormalValueDictionary normalValueDictionary);

    /**
     * 根据条件分页查询正常值字典记录列表
     * @param map
     * @return list
     */
    List<NormalValueDictionary> queryList (Map<String, Object> map);

    /**
     * 根据条件查询正常值字典记录总记录数
     * @param map
     * @return
     */
    int queryNum (Map<String, Object> map);

}
